//
//  DataBaseTool.h
//  Travel
//
//  Created by lanou3g on 15/12/17.
//  Copyright © 2015年 涂晓雨. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"
#import "FMDB.h"
@interface DataBaseTool : NSObject

@property(nonatomic,strong)UserModel *user;
@property(nonatomic,strong)FMDatabase *db;

+(instancetype)shareDataBaseTool;

//插入
-(void)insertWithModel:(UserModel *)model;

//打开数据库
-(void)openDataBase;

//查找全部
-(NSArray *)selectAllUser;

//查询登陆用户的信息
-(BOOL)searchUserData:(UserModel *)model;

@end
